package com.shujia.mr.pcount;

import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        String s = "王二麻,12月2号,,";
        String[] strings = s.split(",",-1);
        System.out.println(Arrays.toString(strings));
        System.out.println(strings.length);
        for (String s1 : strings) {
//            System.out.println(s1);
            if("".equals(s1)){
                System.out.println("是空字符串");
            }
        }
    }
}
